<!DOCTYPE HTML>
<html>

<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.css" />
	<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css" />
	<script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery/jquery.cookie.min.js"></script>

	<link href="/admin/lib/select2/4.0.7/css/select2.min.css" rel="stylesheet" />
	<script src="/admin/lib/select2/4.0.7/js/select2.min.js"></script>
	<script src="/admin/lib/select2/4.0.7/js/i18n/zh-CN.js"></script>

	<script type="text/javascript" src="/admin/lib/layer/3.1.1/layer.js"></script>
	<script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>

	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/jquery.form.js"></script>

	<script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript" src="/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<link rel="stylesheet" href="/admin/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" />
	<script src="/admin/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
	<style>
		input[type="radio"],input[type="checkbox"]{
			zoom:120%;
		}
		/*#datatable{
			white-space: nowrap;
		}*/
	</style>
	<script type="text/javascript">
		$(function(){
			$("#myform").validate({
				ignore: []
			});
			$('.select2').select2();
		});
		var adminName = "{{config('constant.name_admin')}}",
		static_res_ver = "{{config('constant.static_res_ver')}}",
		isAd=false;
		@if(isAdmin())
			isAd = true;
		@endif
	</script>
	<style>@yield('style')</style>
	<title>@yield('title')</title>
	@yield('head')
</head>

<body>
	@section('sidebar')
	@show
	@yield('content')
	<script>
        // 获取列表中的选中项，并返回id数组
        function getDataIds() {
        	let idsAry = [];
        	$('input:checkbox:checked','tbody').each(function() {
        		// console.log($(this).val());
        		idsAry.push($(this).val());
        	});
        	if(idsAry.length === 0){
        		layer.alert('请先选择要操作的数据');
        		return false;
        	}else{
        		return idsAry;
        	}
        }

        $('#checkAll').on('click',function () {
        	// let toCheckStat = $(this).prop('checked');
        	$(this).closest('table').find('tbody input:checkbox').prop('checked', $(this).prop('checked'));
        })

        $(function () {
        	$('.select2').select2({
	        	width:'100%',
	        	language: "zh-CN",
	        })
        })

    </script>
    @yield('script')
</body>
<script type="text/javascript" src="/admin/static/myfolder/js/common.js?ver={{config('constant.static_res_ver')}}"></script>
</html>
